package com.tanhua.model.mongo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.bson.types.ObjectId;
import org.springframework.data.mongodb.core.mapping.Document;

/**
 *  语音实体类
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Document(collection = "sound")
public class Sound implements java.io.Serializable{

    private ObjectId id; //主键id
    private Long sid; //Long类型，用于推荐系统的模型(自动增长)  【暂定】
    private String gender; //性别
    private Long created; //发布时间
    private Long userId;//语音发布者id
    private String soundUrl; //语音文件，URL
}